run C:\\Users\\Gamaliel\\Documents\\G\\ADD\\IBM_DS\\Visualization\\imex\\Recession_sales.py
try:
    !jupyter nbconvert Vis_py.ipynb --to html --template pj
except Exception as e:
    print('HTML not stored')
import shutil
import os
import shutil
FromFld='C:\\Users\\Gamaliel\\Documents\\G\\ADD\\IBM_DS\\Visualization\\'
Tofld='C:\\Users\\Gamaliel\\Documents\\G\\ADD\\IBM_DS\\IBM_DS_Jupyter_Tasks\\Python4DataScience\\'
HTML_Notes='Vis_py.html'
Jupyter_Notes='Vis_py.ipynb'
try:
    if os.path.isfile(Tofld+'/'+HTML_Notes):
        os.remove(Tofld+'/'+HTML_Notes)
        print(HTML_Notes, 'deleted in', Tofld)
        shutil.move(os.path.join(FromFld,HTML_Notes),os.path.join(Tofld,HTML_Notes))
        print(HTML_Notes, 'replaced in', Tofld)
    else:
        shutil.move(os.path.join(FromFld,HTML_Notes),os.path.join(Tofld,HTML_Notes))
        print(HTML_Notes, 'written in', Tofld)
except Exception as e:
    print('HTML not moved')

    # NB

try:
    if os.path.isfile(Tofld+'/'+Jupyter_Notes):
        os.remove(Tofld+'/'+Jupyter_Notes)
        print(Jupyter_Notes, 'deleted in', Tofld)
        shutil.copy(os.path.join(FromFld,Jupyter_Notes),os.path.join(Tofld,Jupyter_Notes))
        print(Jupyter_Notes, 'copied in', Tofld)
    else:
        shutil.copy(os.path.join(FromFld,Jupyter_Notes),os.path.join(Tofld,Jupyter_Notes))
        print(Jupyter_Notes, 'copied in', Tofld)
except Exception as e:
    print('NB not moved')
Vis_py.html deleted in C:\Users\Gamaliel\Documents\G\ADD\IBM_DS\IBM_DS_Jupyter_Tasks\Python4DataScience\
Vis_py.html replaced in C:\Users\Gamaliel\Documents\G\ADD\IBM_DS\IBM_DS_Jupyter_Tasks\Python4DataScience\
Vis_py.ipynb deleted in C:\Users\Gamaliel\Documents\G\ADD\IBM_DS\IBM_DS_Jupyter_Tasks\Python4DataScience\
Vis_py.ipynb copied in C:\Users\Gamaliel\Documents\G\ADD\IBM_DS\IBM_DS_Jupyter_Tasks\Python4DataScience\